import java.awt.image.BufferedImage;
public class GameControl{
	public int x;
	public int y;

	public int Width;
	public int Height;

	public boolean Visible;

	public  BufferedImage img;

	public GameControl( BufferedImage img, int x,int y){
		this.img=img;
		this.x=x;
		this.y=y;


	}
	public boolean mouseInRect(int x,int y){
		boolean Result=false;
		if(this.x<x&&this.x+Width>x)
			if(this.y<y&&this.y+Height>y) {
				Result=true;
				
			}
		return Result;
	}
	public boolean IsClick(int x,int y) {
	
		return mouseInRect(x,y);
	}




}